<?php
	header('Content-Type:application/json');//json格式
	$conn = mysqli_connect('127.0.0.1','root','','zxcfusers',3306);
	//$conn = mysqli_connect(SAE_MYSQL_HOST_M, SAE_MYSQL_USER, SAE_MYSQL_PASS,  SAE_MYSQL_DB, SAE_MYSQL_PORT);
	$sql = "SET NAMES UTF8";
	mysqli_query($conn,$sql);
	
	$phone=$_REQUEST['uphone'];

	$sql = "SELECT * FROM users WHERE uphone='$phone'";
	$result = mysqli_query($conn, $sql);

	$output=[];
	while(($d=mysqli_fetch_assoc($result))!==null){
		$output[]=$d;
	}
	echo json_encode($output);
